package com.moba.emums;

/** @创建人: dingning @创建时间: 2018-08-27 11:08 */
public enum SysSettingType {
  dayCountRetrun("天数轮回", "dayCountRetrun"),
  MaxLevelCount("奖励最高代数", "MaxLevelCount"),
  weightingRate("k5加权分红比例", "weightingRate"),
  addOrderTimeInterval("购买矿机的时间间隔/小时", "addOrderTimeInterval"),
  orderMoneySumMax("每日下单总金额上限", "orderMoneySumMax"),
  orderProfitRatio("订单出金比例", "orderProfitRatio"),
  orderMoneySum("今日已下单金额", "orderMoneySum"),
  orderMoneySumRate("矿源比例", "orderMoneySumRate"),
  shaoShangSubValue("烧伤差值", "shaoShangSubValue");

  public static String getName(String index) {
    for (SysSettingType c : SysSettingType.values()) {
      if (c.getIndex() == index) {
        return c.name;
      }
    }
    return null;
  }

  private SysSettingType(String name, String index) {
    this.name = name;
    this.index = index;
  }

  private String name;

  private String index;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getIndex() {
    return index;
  }

  public void setIndex(String index) {
    this.index = index;
  }
}
